package com.example.system.class25;

import java.util.LinkedList;

/**
 * @Date 2022/8/25
 * @Author Jonathan
 */
public class Code03_Demo {
    public static void main(String[] args) {
        LinkedList<Integer> queue = new LinkedList<>();
        queue.add(1);
        queue.add(2);
        queue.add(3);
        System.out.println(queue.peekLast());
        System.out.println(queue);
        queue.pollLast();
        System.out.println(queue);

    }
}
